package com.aspose.cells;

public class SpinButtonActiveXControl extends ActiveXControl {
   SpinButtonActiveXControl(Shape shape) {
      super(shape);
      this.e = new zbce();
      this.b().r = 100;
   }

   zbce b() {
      return (zbce)this.e;
   }

   public int getType() {
      return 5;
   }

   public int getMin() {
      return this.b().s;
   }

   public void setMin(int value) {
      this.b().s = value;
      this.b(43);
   }

   public int getMax() {
      return this.b().r;
   }

   public void setMax(int value) {
      this.b().r = value;
      this.b(44);
   }

   public int getPosition() {
      return this.b().t;
   }

   public void setPosition(int value) {
      this.b().t = value;
      this.b(45);
   }

   public int getSmallChange() {
      return this.b().w;
   }

   public void setSmallChange(int value) {
      this.b().w = value;
      this.b(48);
   }

   public int getOrientation() {
      return this.b().y & 255;
   }

   public void setOrientation(int value) {
      this.b().y = (byte)value;
      this.b(50);
   }

   int a(int var1) {
      boolean var2 = false;
      byte var3;
      switch(var1) {
      case 3:
         var3 = 0;
         break;
      case 4:
         var3 = 1;
         break;
      case 5:
         var3 = 14;
         break;
      case 6:
      case 7:
      case 9:
      case 10:
      case 11:
      case 12:
      case 13:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 21:
      case 22:
      case 23:
      case 24:
      case 25:
      case 26:
      case 27:
      case 28:
      case 29:
      case 30:
      case 31:
      case 32:
      case 33:
      case 34:
      case 35:
      case 36:
      case 37:
      case 38:
      case 39:
      case 40:
      case 41:
      case 42:
      case 49:
      case 51:
      default:
         return 0;
      case 8:
         var3 = 3;
         break;
      case 14:
         var3 = 2;
         break;
      case 15:
         var3 = 13;
         break;
      case 43:
         var3 = 5;
         break;
      case 44:
         var3 = 6;
         break;
      case 45:
         var3 = 7;
         break;
      case 46:
         var3 = 8;
         break;
      case 47:
         var3 = 9;
         break;
      case 48:
         var3 = 10;
         break;
      case 50:
         var3 = 11;
         break;
      case 52:
         var3 = 12;
      }

      return 1 << var3;
   }
}
